Python_select version 0.3 - How to Download and Install on Mac OS X
Tuesday the 9th of February, 2010

    python_select  most recent diff


    version 0.3

      View the most recent changes for the python_select port at: python_select.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for python_select.
      The raw portfile for python_select 0.3 is located here:
      http://python_select.darwinports.com/dports/sysutils/python_select/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/python_select


      The python_select Portfile 57572 2009-09-13 10:54:24Z raimue macports.org $

      PortSystem 1.0
      PortGroup select 1.0

      Name: python_select
      Version: 0.3
      Category: sysutils
      Platform: darwin
      Maintainers: raimue
      Description: Switch the default python interpreter
      Long Description: python_select lets you switch the default python interpreter. python_select symlinks the standard python executables in the MacPorts prefix to the selected version.

      Homepage: http://svn.macports.org/repository/macports/contrib/select/
      Master Sites: ${homepage}
      distname select-${version}
      Checksums: md5 b24cecd12fc5567e544b25c5df34a255 sha1 4aa312d7e0b9ede1ef015fcd941ff53a0329127a rmd160 f121d366cdecc7d5331040abfd153334399d80d5

      configure.args --mandir=${prefix}/share/man --name=python

      # install all files
      post-destroot {
      select::install python ${filespath}/base
      select::install python ${filespath}/none
      }

      platform darwin 7 {
      post-destroot {
      select::install python ${filespath}/python23-apple
      }

      post-activate {
      if {[exec ${prefix}/bin/${name} -s] == "none"} {
      system "${destroot}${prefix}/bin/${name} python23-apple"
      }
      }
      }

      platform darwin 8 {
      post-destroot {
      select::install python ${filespath}/python23-apple
      }

      post-activate {
      if {[exec ${prefix}/bin/${name} -s] == "none"} {
      system "${destroot}${prefix}/bin/${name} python23-apple"
      }
      }
      }

      platform darwin 9 {
      post-destroot {
      select::install python ${filespath}/python25-apple
      }

      post-activate {
      if {[exec ${prefix}/bin/${name} -s] == "none"} {
      system "${prefix}/bin/${name} python25-apple"
      }
      }
      }

      platform darwin 10 {
      post-destroot {
      select::install python ${filespath}/python26-apple
      }

      post-activate {
      if {[exec ${prefix}/bin/${name} -s] == "none"} {
      system "${prefix}/bin/${name} python26-apple"
      }
      }
      }

      livecheck.type none

      # Documentation for python ports:
      # PortGroup select 1.0
      # select.group python
      # select.file ${filespath}/python[string map {. {}} ${branch}]

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/python_select
      % sudo port install python_select
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching python_select
      ---> Verifying checksum for python_select
      ---> Extracting python_select
      ---> Configuring python_select
      ---> Building python_select with target all
      ---> Staging python_select into destroot
      ---> Installing python_select
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using python_select with these commands:
      %  man python_select
      % apropos python_select
      % which python_select
      % locate python_select

     Where to find more information:

    Darwin Ports



    Lightbox this page.